Release 10.1A: OpenEdge Development:
ADM Reference


isUpdateActive

Procedure that is received from container source to check if contained objects have unsaved or uncommitted changes (including addMode).

Location: containr.p

Parameters:

INPUT-OUTPUT plActive AS LOGICAL Notes: This is published thru the container link and used mainly to validate that a FALSE value received in updateActive can be used to set UpdateActive. This is NOT intended to be called directly, but part of the logic that updates UpdateActive. These are the steps: (1) Updating objects publishes updateActive (TRUE or FALSE) to their container targets. (2) If the value is FALSE the container then publishes this to ALL ContainerTargets before it is stored in UpdateActive. This way the value is only stored as FALSE if ALL contained objects are inactive.

Examples:

PROCEDURE initializeObject: 
/* Purpose: Initialize the current SmartContainer and initialize some  
   frequently used pages at the same time. */ 
  RUN SUPER.   /* Execute standard page creation first. */ 
   /* Initialize pages 2, 8, and 106 at startup. This will create the 
      pages but not view them. */ 
  RUN initPages (‘2,8,106’:U). 
END PROCEDURE. 
PROCEDURE createObjects: 
/* Purpose: Local version to add an Update link between a SmartDataObject  
   on page 0 and a SmartDataViewer on page 2; not done until page 2 is 
   created. */ 
  RUN SUPER.       /* Do the standard creation for each page first. */ 
   IF getCurrentPage() = 2 THEN 
     RUN addLink(h_Vcust, ‘Update’:U, h_Dcust). 
END PROCEDURE. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095